<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>我的订单</title>
	<link rel="stylesheet" href="css/jd_ordercss.css" />
	<link rel="stylesheet" href="css/order.css" />
	<link rel="stylesheet" href="font/css/font-awesome.min.css" />
	<script type="text/javascript" src="jquery/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="js/jd_topad.js" ></script>
	<script type="text/javascript" src="js/jd_shopcar.js" ></script>
</head>
<body>

	<!-- 左边导航条 -->
	<!-- 顶部导航区域开始  -->
	<div id="topad">
		<div class="center">

			<ul style="float:right;width:auto;">
				<?php if (isset($_SESSION['user_id'])): ?>
					<li class="a"><a class="hello" href="<?php echo U('Member/User/myInfo') ?>"><?php echo $_SESSION['username'] ?></a><a class="login" href="<?php echo U('Member/User/quit') ?>">退出</a><span class="line"></span></li>
				<?php else: ?>
					<li class="a"><a class="hello" href="<?php echo U('Member/User/login') ?>">你好，请登录</a><a class="login" href="<?php echo U('Member/User/register') ?>">免费注册</a><span class="line"></span></li>
				<?php endif ?>

				<li><a href="<?php echo U('Member/Index/order') ?>">我的订单</a><span class="line"></span></li>
				<li class="a side"><a href="<?php echo U('Member/Index/myInfo') ?>">我的京东</a>

				</li>

			</ul>
		</div>
	</div>
	<!-- 顶部导航区域结束 -->

	<!-- 搜索区域开始-->
	<div id="search_background" style="height:auto;">
		<div id="search">
			<img src="images/logo-201305.jpg" alt="" height="80" width="270" class="jd"  />
			<form action="" class="search">
				<input class="text" type="text"  value="金龙鱼" />
				<input type="submit" class="submit" value="搜索" />
			</form>
			<a href="<?php echo __ROOT__ ?>" title="" class="home">首页</a>
			<div class="shopcar">
				<div class="over">
					<img src="images/sleep.png" height="49" width="57" alt="" />
					<p>购物车中还没有商品，赶紧选购吧！</p>
				</div>
				<div class="include">
					<span class="car"></span>
					<a href="">我的购物车</a>
					<span class="arrow">〉</span>
					<span class="logo">0</span>
				</div>
			</div>
		</div>

	</div>

	<!-- 搜索区域结束-->

	<!-- 主区域开始 -->
	<div id="item_content">
		<div class="center">
			<div class="left">
				<div class="order">
					<h3 class="order_title">
						订单中心
					</h3>
					<ul class="order_list">
						<li>
							<a href="<?php echo U('Member/Index/order') ?>" title="">
								我的订单
							</a>
						</li>
					</ul>
				</div>
				<div class="order">
					<h3 class="order_title">
						关注中心
					</h3>
					<ul class="order_list">
						<li>
							<a href="<?php echo U('Member/Index/focus') ?>" title="">
								我的关注
							</a>
						</li>
						<li>
							<a href="<?php echo U('Member/Index/scanHistory') ?>" title="">
								浏览历史
							</a>
						</li>
					</ul>
				</div>
				<div class="order">
					<h3 class="order_title">
						设置
					</h3>
					<ul class="order_list">
						<li>
							<a href="<?php echo U('Member/Index/myInfo') ?>" title="">
								个人信息
							</a>
						</li>
						<li>
							<a href="<?php echo U('Member/Index/myAddress') ?>" title="">
								收货地址
							</a>
						</li>
					</ul>
				</div>
			</div>
			<div class="right">
				<h3 class="my_order">
					我的订单
				</h3>
				<div class="all_order">
					<div class="status">
						<table class="table_order">
							<thead>
								<tr>
									<td>订单详情</td>
									<td>收货人</td>
									<td>总计</td>
									<td>全部状态
									</td>
									<td>操作</td>
								</tr>
							</thead>

							<tbody>
								<?php foreach ($orders as $k => $v):
									$rowspan =count($v['goodlist']);
								?>
									<tr>
										<td colspan='5' style="height:0px;width: 100%; border:0;"></td>
									</tr>
									<tr class="order_news" style="background: #F5F5F5;">
										<td colspan='5' style="width: 100%;">
											<time datetime="2011-01-12"><?php echo date('Y-m-d H:i:s',$v['create_at']) ?></time>
											<span class="order_num">订单号：<a href=""><?php echo $v['buy_order_num'] ?></a></span>
											<div class="service_client">
												<span class="jd">京东</span>
												<a href="" class="background"></a>
											</div>
										</td>
									</tr>
									<?php foreach ($v['goodlist'] as $key => $value): ?>
										<tr>
											<td>
												<a href="" class="img">
													<img src="<?php echo $value['midd_pic'] ?>" width=100>
												</a>
												<a href="" title="" class="item_title">
													<?php echo $value['goods_name'] ?>
												</a>
												<span class="quantity">x <?php echo $value['buy_num'] ?></span>
											</td>
									<?php if ($key==0):?>
											<td rowspan="{{$rowspan}}" valign="top">
												<a href="" title=""><?php echo $v['consignee'] ?></a>
											</td>
											<td rowspan="{{$rowspan}}" valign="top">
												<p class="price">¥ <?php echo $v['total_price'] ?></p>
												<p class="pay_online"><?php if ($v['pay_way']==0): ?>
													货到付款
												<?php endif ?></p>
											</td>
											<td  rowspan="{{$rowspan}}" valign="top">
												<p class="wait_pay">
													<?php if ($v['order_state']==0): ?>
														等待付款
													<?php endif ?>

												</p>
												<p class="follow">
													跟踪
												</p>
												<a class="order_detail">
													订单详情
												</a>
											</td>
											<td  rowspan="{{$rowspan}}" valign="top">
												<p class="subplus">
													剩余1时23分
												</p>
												<a href="" class="pay">
													付款
												</a>
												<a class="find_pay">
													请人代付
												</a>
												<a class="cancel_order">
													取消订单
												</a>
											</td>
										<?php endif;?>
										</tr>
									<?php endforeach ?>

								<?php endforeach ?>
							</tbody>
						</table>
						<script type="text/javascript">
							$(function(){
								$()
							})
						</script>
					</div>
				</div>
			</div>
		</div>
	</div>

	<!-- 主区域结束 -->
	<!-- <div style="height:100px;"></div> -->
	<!-- 底部服务开始 -->
	<div id="service" style="border-top:1px solid #dcdcdc;padding-top:10px;">
		<div class="part">
			<h3>购物指南</h3>
			<a href="">购物流程</a>
			<a href="">会员介绍</a>
			<a href="">生活旅行/团购</a>
			<a href="">常见问题</a>
			<a href="">大家电</a>
			<a href="">联系客服</a>
		</div>
		<div class="part2">
			<h3>配送方式</h3>
			<a href="">上门自提</a>
			<a href="">211限时达</a>
			<a href="">配送服务查询</a>
			<a href="">配送费收取标准</a>
			<a href="">海外配送</a>
		</div>
		<div class="part">
			<h3>支付方式</h3>
			<a href="">货到付款</a>
			<a href="">在线支付</a>
			<a href="">分期付款</a>
			<a href="">邮局汇款</a>
			<a href="">公司转账</a>
		</div>
		<div class="part">
			<h3>售后服务</h3>
			<a href="">售后政策</a>
			<a href="">价格保护</a>
			<a href="">退款说明</a>
			<a href="">返修/退换货</a>
			<a href="">取消订单</a>
		</div>
		<div class="part5">
			<h3>特色服务</h3>
			<a href="">夺宝岛</a>
			<a href="">DIY装机</a>
			<a href="">延保服务</a>
			<a href="">京东E卡</a>
			<a href="">京东通信</a>
		</div>
		<div class="part6">
			<h3>京东自营覆盖区县</h3>
			<p>京东已向全国1978个区县提供自营配送服务，支持货到付款、OS机刷卡和售后上门服务。</p>
			<a href="">查看详情 ></a>
		</div>
	</div>
	<!-- 底部服务结束 -->
	<!-- 底部索引开始 -->
	<div id="index">
		<p class="first">
			<a href="">关于我们</a>|
			<a href="">联系我们</a>|
			<a href="">商家入驻</a>|
			<a href="">营销中心</a>|
			<a href="">手机京东</a>|
			<a href="">友情链接</a>|
			<a href="">销售联盟</a>|
			<a href="">京东社区</a>|
			<a href="">京东公益</a>|
			<a href="">English Site</a>|
			<a href="">Contact Us</a>
		</p>
		<p class="second">
			<span>北京市公安局朝阳分局备案编号110105014669</span>|
			<span>京ICP证070359号</span>|
			<a href="">互联网药品信息服务资格证编号(京)-经营性-2014-0008</a>|
			<span>新出发京零 字第大120007号</span>
		</p>
		<p class="third">
			<a href="">音像制品经营许可证苏宿批005号</a>|
			<span>出版物经营许可证编号新出发(苏)批字第N-012号</span>|
			<span>互联网出版许可证编号新出网证(京)字150号</span>
		</p>
		<p class="fourth">
			<a href="">网络文化经营许可证京网文[2014]2148-348号  </a>
			<span>违法和不良信息举报电话：4006561155  Copyright © 2004-2015  京东JD.com 版权所有</span>
		</p>
		<p class="fifth">
			<span>京东旗下网站:</span>
			<a href="">360TOP</a>
			<a href="">拍拍网</a>
			<a href="">网银在线</a>
		</p>
		<div class="img">
			<img src="images/v.png" height="32" width="103" alt="" />
			<img src="images/v1.png" height="32" width="103" alt="" />
			<img src="images/v3.png" height="32" width="103" alt="" />
			<img src="images/v4.png" height="32" width="103" alt="" />
			<img src="images/v7.png" height="32" width="185" alt="" />
			<img src="images/v5.jpg" height="32" width="103" alt="" />
		</div>
	</div>
	<!-- 底部索引结束 -->
</body>
</html>